<!DOCTYPE html>
<html>
<head>
    <title>一级分类</title>
</head>
<body>
    <h1>一级分类</h1>
    <ul>
        {% for category in categories %}
            <li>
                <a href="{% url 'subcategory_list' category.id %}">{{ category.name }}</a>
            </li>
        {% endfor %}
    </ul>
</body>
</html>
